home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 May / PC Answers CD-ROM 7 (Future Publishing) (May 1995).iso / vbits / code / morris / dll.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-15  |  1.4 KB  |  36 lines

  1. /*=============================================================================================================
  2.  
  3.     The Mandelbrot Set (International) Ltd. may be reached by the following means:
  4.              
  5.     Email:
  6.     ------             
  7.     CIS: 100016,2751
  8.     Internet: 100016.2751@Compuserve.com
  9.  
  10.     FAX: (+44) 01451 860142.
  11.  
  12.     Telephone: (+44) 0941 117534.
  13.  
  14.     TMS accepts no liability whatsoever for this code.
  15.     ==================================================
  16.    
  17.    Very simple DLL function, but a  necessary  one,  that  simply copies one
  18.    WINDOWPOS struct to another.  This is called from the BLOWUP Visual Basic
  19.    sample application and is required as Visual Basic doesn't have a pointer
  20.    type or a method/function that is free of type checking that can copy one
  21.    bit of memory to another.
  22.  
  23. =============================================================================================================*/
  24. #include <windows.h>
  25.  
  26. BOOL __export far pascal nGetWindowPos(LPWINDOWPOS tDest, LPWINDOWPOS tSrce)
  27. {                  
  28.     /* Structure assignment (good ol' ANSI!). */
  29.     *tDest = *tSrce;
  30.     
  31.     return TRUE;
  32. }
  33.  
  34. /*=============================================================================================================
  35.                        EOF (Yup, that's REALLY all there is in it folks!)
  36. =============================================================================================================*/